package refactor;

import java.util.logging.*;

public class MyLogger {

    static private ConsoleHandler consoleHandler;

    static private SimpleFormatter simpleFormatter;




    static public void setup() {



        // Get the global logger to configure it

        Logger logger = Logger.getLogger(Logger.GLOBAL_LOGGER_NAME);



        logger.setLevel(Level.INFO);

        consoleHandler = new ConsoleHandler();



        // create formatter for console

        simpleFormatter = new SimpleFormatter();

        consoleHandler.setFormatter(simpleFormatter);

        logger.addHandler(consoleHandler);


    }

}
 